package org.chen.org.service.impl;

import org.chen.auth.domain.Menu;
import org.chen.org.domain.Employee;
import org.chen.org.mapper.EmployeeMapper;
import org.chen.org.service.IEmployeeService;
import org.chen.bas.service.lmpl.BasServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chen
 * @since 2024-06-05
 */
@Service
public class EmployeeServiceImpl extends BasServiceImpl<Employee> implements IEmployeeService {

    @Autowired
    private EmployeeMapper mapper;

    @Override
    public Employee selectByName(String username) {
        return mapper.selectByName(username);
    }

    @Override
    public List<Menu> getMenuByEmpId(Long id) {
        return mapper.getMenuByEmpId(id);
    }
}
